package com.woniu.new_orange.service_model_gao.service.impl;

import com.woniu.new_orange.entity.PassengerInformation;
import com.woniu.new_orange.mapper.PassengerInformationMapper;
import com.woniu.new_orange.service_model_gao.dto.PassengerDto;
import com.woniu.new_orange.service_model_gao.service.PassengerService;
import com.woniu.new_orange.service_model_gao.vo.PassengerVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Program: new_orange->PassengerServiceImpl
 * @Description:
 * @Author: gao chaozhe
 * @Date: 2023-02-06 12:14
 * @Version： 1.0
 **/
@Service
public class PassengerServiceImpl implements PassengerService {
    @Autowired
    private PassengerInformationMapper passengerInformationMapper;
    @Override
    public List<PassengerVo> selectAll(PassengerDto passengerDto) {
        return passengerInformationMapper.selectAll(passengerDto);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return passengerInformationMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(PassengerInformation record) {
        return passengerInformationMapper.insert(record);
    }

    @Override
    public int insertSelective(PassengerInformation record) {
        return passengerInformationMapper.insertSelective(record);
    }

    @Override
    public PassengerInformation selectByPrimaryKey(Long id) {
        return passengerInformationMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(PassengerInformation record) {
        return passengerInformationMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(PassengerInformation record) {
        return passengerInformationMapper.updateByPrimaryKey(record);
    }
}
